home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 2.00 Begin Form frmAboutBox BackColor = &H8000000F& BorderStyle = 3 'Fixed Double ClientHeight = 3180 ClientLeft = 2160 ClientTop = 2328 ClientWidth = 5256 Height = 3600 Icon = ABOUTBOX.FRX:0000 Left = 2112 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 3180 ScaleWidth = 5256 Top = 1956 Width = 5352 Begin PictureBox picIcon BackColor = &H8000000F& Height = 492 Left = 120 ScaleHeight = 468 ScaleWidth = 468 TabIndex = 9 Top = 72 Width = 492 End Begin CommandButton cmdFullSysInfo BackColor = &H8000000F& Caption = "&System Info..." FontBold = 0 'False FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 7.8 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 384 Left = 3816 TabIndex = 7 Top = 1236 Width = 1344 End Begin CommandButton cmdOK BackColor = &H8000000F& Cancel = -1 'True Caption = "OK" Default = -1 'True FontBold = 0 'False FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 7.8 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 384 Left = 3816 TabIndex = 6 Top = 840 Width = 1344 End Begin Label lblCompany AutoSize = -1 'True BackColor = &H8000000F& BackStyle = 0 'Transparent BorderStyle = 1 'Fixed Single Caption = "Company" FontBold = 0 'False FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 7.8 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 216 Left = 168 TabIndex = 1 Top = 1188 Width = 720 End Begin Label lblName AutoSize = -1 'True BackColor = &H8000000F& BackStyle = 0 'Transparent BorderStyle = 1 'Fixed Single Caption = "Name" FontBold = 0 'False FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 7.8 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 216 Left = 180 TabIndex = 2 Top = 912 Width = 468 End Begin Label lblProductID AutoSize = -1 'True BackColor = &H8000000F& BackStyle = 0 'Transparent BorderStyle = 1 'Fixed Single Caption = "2656-6767-8080" FontBold = 0 'False FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 7.8 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 216 Left = 1068 TabIndex = 3 Top = 1452 Width = 1128 End Begin Label lblDummy1 AutoSize = -1 'True BackColor = &H8000000F& BackStyle = 0 'Transparent BorderStyle = 1 'Fixed Single Caption = "Product ID:" FontBold = 0 'False FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 7.8 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 216 Left = 168 TabIndex = 4 Top = 1452 Width = 804 End Begin Shape Shape1 BorderColor = &H00000000& Height = 972 Left = 120 Top = 840 Width = 3612 End Begin Label lblCaption AutoSize = -1 'True BackStyle = 0 'Transparent BorderStyle = 1 'Fixed Single Caption = "Caption Text" FontBold = 0 'False FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 7.8 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 216 Left = 696 TabIndex = 8 Top = 84 Width = 924 End Begin Line ln3D2 BorderColor = &H00FFFFFF& X1 = 192 X2 = 5040 Y1 = 1920 Y2 = 1920 End Begin Line ln3D1 BorderColor = &H00000000& X1 = 192 X2 = 5040 Y1 = 1908 Y2 = 1908 End Begin Label lblCopyright AutoSize = -1 'True BackStyle = 0 'Transparent Caption = "Warning: This computer program is protected by copyright law and International treaties. Unauthorized reproduction or distribution of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law." FontBold = 0 'False FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 7.8 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 1116 Left = 36 TabIndex = 5 Top = 2016 Width = 5172 WordWrap = -1 'True End Begin Label lblLicensedTo AutoSize = -1 'True BackStyle = 0 'Transparent Caption = "This product is licensed to:" Height = 192 Left = 120 TabIndex = 0 Top = 624 Width = 2244 End Begin Shape Shape2 BorderColor = &H00FFFFFF& Height = 972 Left = 132 Top = 852 Width = 3612 End '========================================================== ' Module - ABOUTBOX.FRM ' Module Prefix - None ' Author - Peter J. Morris. TMS Ltd. ' Date Written : #### Date - 16/11/94 Time - 03:11 ' Purpose - First About Box form, standard about box ' minus system detail. ' Revisions ' BY WHY AFFECTED ' Peter J. Morris. TMS Ltd. Original code. '========================================================== Option Explicit '========================================================== ' Function - cmdFullSysInfo_Click ' Author - Peter J. Morris. TMS Ltd. ' Date Written: #### Date - 16/11/94 Time - 03:11 ' Purpose - See function purpose. ' Revisions: ' BY WHY AFFECTED ' Peter J. Morris. TMS Ltd. Original code. ' INPUTS - None ' OUTPUTS - None '========================================================== Private Sub cmdFullSysInfo_Click () '========================================================== ' Form: ABOUTBOX.FRM Procedure: cmdFullSysInfo_Click ' Author - Peter J. Morris. TMS Ltd. ' Template fitted: #### Date - 16/11/94 Time - 03:11 ' Copyright and status if any: Copyright TMS 1994,1995 ' All rights reserved. Status @BLUE@TMS.DEMO@COLD ' Purpose/Description In brief: ' Shows 'main' dialog. '========================================================= ' Set up general error handler On Error GoTo Error_cmdFullSysInfo_Click: ' ========== Code Starts.========== Screen.MousePointer = HOURGLASS ' Show 'full' system info form to user modally. This is the form ' that contains most of the fruity information. frmAboutBoxInfo.Show MODAL ' ========== Code Ends .========== Exit Sub ' Error handler Error_cmdFullSysInfo_Click: ' Set pointer back first. Screen.MousePointer = DEFAULT ' Call general error handler ErrorHandler "ABOUTBOX.FRM/cmdFullSysInfo_Click", Err, Error$ ' Default resume behaviour: exit this sub/func Resume Exit_cmdFullSysInfo_Click: Exit_cmdFullSysInfo_Click: End Sub '========================================================== ' Function - cmdOK_Click ' Author - Peter J. Morris. TMS Ltd. ' Date Written: #### Date - 16/11/94 Time - 03:11 ' Purpose - See function purpose. ' Revisions: ' BY WHY AFFECTED ' Peter J. Morris. TMS Ltd. Original code. ' INPUTS - None ' OUTPUTS - None '========================================================== Private Sub cmdOK_Click () '========================================================== ' Form: ABOUTBOX.FRM Procedure: cmdOK_Click ' Author - Peter J. Morris. TMS Ltd. ' Template fitted: #### Date - 16/11/94 Time - 03:11 ' Copyright and status if any: Copyright TMS 1994,1995 ' All rights reserved. Status @BLUE@TMS.DEMO@COLD ' Purpose/Description In brief: ' Unloads form. '========================================================= ' Set up general error handler On Error GoTo Error_cmdOK_Click: ' ========== Code Starts.========== '// Simply unload form on click of OK button. Unload Me ' ========== Code Ends .========== Exit Sub ' Error handler Error_cmdOK_Click: ' Call general error handler ErrorHandler "ABOUTBOX.FRM/cmdOK_Click", Err, Error$ ' Default resume behaviour: exit this sub/func Resume Exit_cmdOK_Click: Exit_cmdOK_Click: End Sub '========================================================== ' Function - DoIcon ' Author - Peter J. Morris. TMS Ltd. ' Date Written: #### Date - 16/11/94 Time - 03:11 ' Purpose - See function purpose. ' Revisions: ' BY WHY AFFECTED ' Peter J. Morris. TMS Ltd. Original code. ' INPUTS - frm -> Form to use. ' OUTPUTS - None '========================================================== Private Sub DoIcon (frm As Form) '========================================================== ' Form: ABOUTBOX.FRM Procedure: DoIcon ' Author - Peter J. Morris. TMS Ltd. ' Template fitted: #### Date - 16/11/94 Time - 03:11 ' Copyright and status if any: Copyright TMS 1994,1995 ' All rights reserved. Status @BLUE@TMS.DEMO@COLD ' Purpose/Description In brief: ' Sub to update our picture box (picIcon) with the main icon ' from our executable. This allows this 'About Box' code to ' be a little more generic therefore. '========================================================= ' Set up general error handler On Error GoTo Error_DoIcon: ' ========== Code Starts.========== ' Holds app's icon handle. Dim hIcon As Integer ' Turn off picture boxes border. frm!picIcon.BorderStyle = 0 ' Make sure picture box can hold an icon EXACTLY. frm!picIcon.AutoSize = True frm!picIcon.Picture = Me.Icon ' Get icon out of EXE. Could have used GetModuleFileName() here. Assume ' that 0 is a good index for the default icon as it usually is. hIcon = ExtractIcon(GetWindowWord(Me.hWnd, GWW_HINSTANCE), App.Path & "\" & App.EXEName & ".EXE", 0) ' Di we get a real icon? If hIcon <> 0 Then ' Render if found. g_vDummy = DrawIcon(frm!picIcon.hDC, 0, 0, hIcon) Else ' Create off-screen image so that picture alwats redraws OK. frm!picIcon.AutoRedraw = True frm!picIcon.Picture = Me.Icon frm!picIcon.Refresh End If ' ========== Code Ends .========== Exit Sub ' Error handler Error_DoIcon: ' Call general error handler ErrorHandler "ABOUTBOX.FRM/DoIcon", Err, Error$ ' Default resume behaviour: exit this sub/func Resume Exit_DoIcon: Exit_DoIcon: End Sub '========================================================== ' Function - Form_Load ' Author - Peter J. Morris. TMS Ltd. ' Date Written: #### Date - 16/11/94 Time - 03:11 ' Purpose - See function purpose. ' Revisions: ' BY WHY AFFECTED ' Peter J. Morris. TMS Ltd. Original code. ' INPUTS - None ' OUTPUTS - None '========================================================== Private Sub Form_Load () '========================================================== ' Form: ABOUTBOX.FRM Procedure: Form_Load ' Author - Peter J. Morris. TMS Ltd. ' Template fitted: #### Date - 16/11/94 Time - 03:11 ' Copyright and status if any: Copyright TMS 1994,1995 ' All rights reserved. Status @BLUE@TMS.DEMO@COLD ' Purpose/Description In brief: ' Simple form initialisation. '========================================================= ' Set up general error handler On Error GoTo Error_Form_Load: ' ========== Code Starts.========== ' Center the form. CenterWindow Me ' Update the captions (form.caption and caption label) and ' get registration information from Windows. DoCaption Me DoRegInfo Me ' Update about box icon with application's icon. DoIcon Me ' Re-init label controls. DoLabels Me ' ========== Code Ends .========== Exit Sub ' Error handler Error_Form_Load: ' Call general error handler ErrorHandler "ABOUTBOX.FRM/Form_Load", Err, Error$ ' Default resume behaviour: exit this sub/func Resume Exit_Form_Load: Exit_Form_Load: End Sub